﻿<div class="blade-content">
    <div class="blade-inner">
        <div class="inner-block">
            <div class="form">
                <div class="block">
                    <div>
                        <p class="text">{{blade.notification.description}}</p>
                    </div>
                    
                </div>
                <div class="block" ng-if="blade.notification.created || blade.notification.finished">
                    <p ng-if="blade.notification.created" ng-class="{'no-data': blade.notification.created}" class="text">Start — <i class="fa fa-clock-o"></i> {{blade.notification.created | date : 'mediumTime'}}</p>
                    <p ng-if="blade.notification.finished" ng-class="{'no-data': blade.notification.finished}" class="text">End — <i class="fa fa-clock-o"></i> {{blade.notification.finished | date : 'mediumTime'}}</p>
                </div>
                <div class="block" ng-if="blade.notification.totalCount || blade.notification.processedCount || blade.notification.errorCount">
                    <ul class="list __info">
                        <li class="list-item">
                            <div class="list-t">Total count</div>
                            <div class="list-descr">{{blade.notification.totalCount}}</div>
                        </li>
                        <li class="list-item">
                            <div class="list-t">Processed count</div>
                            <div class="list-descr">{{blade.notification.processedCount}}</div>
                        </li>
                        <li class="list-item">
                            <div class="list-t">Error count</div>
                            <div class="list-descr">{{blade.notification.errorCount}}</div>
                        </li>
                    </ul>
                </div>
                <div ng-if="blade.notification.errorCount > 0">
                    <span class="sub-t">Errors</span>
                    <div class="log">
                        <p ng-repeat="error in blade.notification.errors track by $index" class="error">{{error}}</p>
                    </div>
                </div>
             </div>
        </div>
    </div>
</div>